package com.lck.blogmanager.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lck.blogmanager.entity.BlogEntity;
import com.lck.blogmanager.req.*;
import com.lck.blogmanager.res.BlogUserDetailRes;
import com.lck.blogmanager.res.DetailBlogRes;
import com.lck.blogmanager.res.PageBlogRes;
import com.lck.blogmanager.res.UserBlogListRes;

public interface BlogService extends IService<BlogEntity> {
    Integer addBlog(AddBlogReq req);

    void updateBlog(UpdateBlogReq req);

    void deleteBlog(DeleteBlogReq req);

    Page<PageBlogRes> pageBlog(PageBlogReq req);

    DetailBlogRes detailBlog(Integer blogId);

    void auditBlog(AuditBlogReq req);

    Page<UserBlogListRes> userList(UserBlogListReq req);

    BlogUserDetailRes userDetail(Integer blogId);

    Page<PageBlogRes> userCenterPageBlog(PageBlogReq req);

    void likeBlog(Integer blogId);


    void collectBlog(Integer blogId);

}
